package cn.stylefeng.guns.sys.modular.system.mapper;


import cn.stylefeng.guns.sys.modular.system.entity.QuartzTask;
import cn.stylefeng.guns.sys.modular.system.model.params.QuartzTaskParam;
import cn.stylefeng.guns.sys.modular.system.model.result.QuartzTaskResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 任务类mapper
 *
 * @author jiangge
 */
public interface QuartzTaskMapper extends BaseMapper<QuartzTask> {
    /**
     * 获取列表
     *
     * @author jiangge
     * @Date 2020-10-20
     */
    List<QuartzTaskResult> customList(@Param("paramCondition") QuartzTaskParam paramCondition);

    /**
     * 获取map列表
     *
     * @author jiangge
     * @Date 2020-10-20
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") QuartzTaskParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author jiangge
     * @Date 2020-10-20
     */
    Page<QuartzTaskResult> customPageList(@Param("page") Page page, @Param("paramCondition") QuartzTaskParam paramCondition);

    /**
     * 获取分页map列表
     *
     * @author jiangge
     * @Date 2020-10-20
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") QuartzTaskParam paramCondition);

    QuartzTask get(Long id);

    List<QuartzTask> list();

    Page<QuartzTaskResult> findPageBySpec(@Param("page") Page page, @Param("paramCondition") QuartzTaskParam param);


    int update(QuartzTask task);

    int remove(Long id);

    int removeBatch(Long[] ids);
}
